@import com.mgfireworks.mgplatform.mgadmin.sys.model.Area
@extends("/form_template")
@args Boolean isEdit
@args Area area
@{
	if(area==null){
		area=new Area();
	}
}
<div class="row form-horizontal form-label-left">
   <div class="col-md-12 col-sm-12 col-xs-12">
     <div class="x_panel">
       <div class="x_title">
         <h2>@if(isEdit){修改}else{添加}区域</h2>
         <div class="clearfix"></div>
       </div>
       <div class="x_content">
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="areaId">区域编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="areaId" name="areaId" value="@area.getAreaId()" placeholder="请输入区域编号" required="required" @if(isEdit&&true){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="areaName">区域名称<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="areaName" name="areaName" value="@area.getAreaName()" placeholder="请输入区域名称" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="areaLevel">区域级别
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="areaLevel" name="areaLevel" value="@area.getAreaLevel()" placeholder="请输入区域级别"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="parentId">父级编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="parentId" name="parentId" value="@area.getParentId()" placeholder="请输入父级编号" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
			
       </div>
     </div>
   </div>
</div>